//# sourceURL=getTable.js
/**
 * @title 渲染table方法集合
 * @description 渲染table方法集合
 * @author ChenSiTong
 * @date 2018-08-02
 * 
 * table数据拉取在此处
 */
;var table = table || {};
table = {
    init:function(){
         //模拟生成table
        table.basicSettingTable();
        table.userTable();
        table.perssitionTable();
        table.classTable();
        table.classDivideOptimizeTable();
        table.classDivideQueryTable();
        table.classDivideStatisticsTable();
        table.classUniversityTable();
        table.classScoreSubsection();
        table.schoolStatusTable();
        table.schoolStatusUnusualActionSettingTable();
        table.schoolStatusUnusualActionTable();
        table.payManagement();
        table.upgradeTabge();
        table.associationExamineTable();
        table.associationManagementTable();
        table.associationHasBandTable();
        table.organizationPartyMember();
        table.organizationLeagueMember();
        table.organizationNoticeTable();
        table.appraiseManagementTable();
        table.appraise_query_table();
        table.appraiseProblemSettingTable();
        table.healthManagementTable();
        table.rewardApplyTable();
        table.rewardExamineTable();
        table.rewardStatisticsTable();
        table.supportPoorStudentsTable();
        table.supportPoorStudentsExamine();
        table.supportPoorStatistics();
        table.scholarshipList();
        table.supportMapplyList();
        table.scholarshipStatisticsTable();
        table.postReleaseTable();
        table.applyPostTable();
        table.postServicingTable();
        table.payrollSupportTable();
        table.payrollGrantTable();
        table.activityGrantTable();
        table.activityMemberTable();
        table.activityRecordTable();
        table.activityRecordExamineTable();
        table.activityCheckTable();
        table.graduateMainTable();
        layui.use('laypage', function(){
            var laypage = layui.laypage;  
            //执行一个laypage实例
            laypage.render({
              elem: 'c_page_0', //注意，这里的 test1 是 ID，不用加 # 号
              limit:3
              ,count: 5,
              theme: '#2a52b1'  //数据总数，从服务端得到
            });
            laypage.render({
                elem: 'c_page_1', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_2', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_3', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_4', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_5', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_school_status', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_unusual_action', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_pay_management', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_upgrade', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_association_examine', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_association_management', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_organization', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_organization_league_member', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_organization_notice', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_appraise_management', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_appraise_query', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_appraise_setting', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_health_management', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_reward_apply', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_reward_examine', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_reward_statistics', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_support_poor_students', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_support_poor_students_examine', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_scholarship_list', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });

              laypage.render({
                elem: 'c_page_apply_list', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_apply_post', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_post_servicing', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_payroll_support', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_payroll_grant', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              

              laypage.render({
                elem: 'c_page_activity_activity', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_activity_member', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_activity_record', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_activity_record_examine', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              laypage.render({
                elem: 'c_page_activity_check', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
              
              laypage.render({
                elem: 'c_page_activity_graduate', //注意，这里的 test1 是 ID，不用加 # 号
                limit:3
                ,count: 5,
                theme: '#2a52b1'  //数据总数，从服务端得到
              });
        });
    },
    //基础设置table
    basicSettingTable:function(){
        var data = {
            head:["入学年份","操作"],
            data:[
                {
                    d1:['2018'],
                    operation:["编辑","删除"]
                },
                {
                    d1:['2017'],
                    operation:["编辑","删除"]
                },
                {
                    d1:['2016'],
                    operation:["编辑","删除"]
                },
                {
                    d1:['2015'],
                    operation:["编辑","删除"]
                },
                {
                    d1:['2014'],
                    operation:["编辑","删除"]
                }
            ]
        }
        $.getTable({
            dom:".c-table",
            data:data,
            hasCheckbox:false
        })
    },
    //用户设置table
    userTable:function(){
        var data_user = {
            head:["工号","姓名","性别","密码","操作"],
            data:[
                {
                    d1:['A00001','小明同学','男',"123123123"],
                    operation:["编辑"]
                },
                {
                    d1:['A00001','小明同学','男','123123123'],
                    operation:["编辑"]
                },
                {
                    d1:['A00001','小明同学','男','123123123'],
                    operation:["编辑"]
                }
            ]
        }
        $.getTable({
            dom:".c-table-user",
            data:data_user,
            hasCheckbox:false
        })
    },
    //权限tabe
    perssitionTable:function(){
        var data_permission = {
            head:["权限名称","操作"],
            data:[
                {
                    d1:['校领导'],
                    operation:["编辑","删除"]
                },
                {
                    d1:['教师'],
                    operation:["编辑","删除"]
                },
                {
                    d1:['学生'],
                    operation:["编辑","删除"]
                }
            ]
        }
        $.getTable({
            dom:".c-table-permission",
            data:data_permission,
            hasCheckbox:true
        })
    },
    // 班级table
    classTable:function(){
        var data_class = {
            head:["分班类型","名次区间","班级个数","备注"],
            data:[
                {
                    d1:['文科班','1-50','1','语数英政史地']
                },
                {
                    d1:['文科班','1-50','1','语数英政史地']
                },
                {
                    d1:['文科班','1-50','1','语数英政史地']
                }
            ]
        }
        $.getTable({
            dom:".c-table-class",
            data:data_class,
            hasCheckbox:true
        })
    },
    //分班优化table
    classDivideOptimizeTable:function(){
        var data_class_divide_optimize_table = {
            head:["平均分对象","语文","数学","英语","政治","历史","地理"],
            data:[
                {
                    d1:['按名次1-80平均分','100','120','116','89','96','90']
                },
                {
                    d1:['1班','100','120','116','89','96','90']
                },
                {
                    d1:['2班','100','120','116','89','96','90']
                },
                {
                    d1:['3班','100','120','116','89','96','90']
                }
            ]
        };
        $.getTable({
            dom:".c-table-class-divide-optimize",
            data:data_class_divide_optimize_table,
            hasCheckbox:false
        })
    },
    //分班查询table
    classDivideQueryTable:function(){
        var class_divide_query_table = {
            head:["学号","姓名","性别","总分","名次","毕业大学"],
            data:[
                {
                    d1:['10304125','小茗同学','男','721','1','中科大'],
                    operation:["调班"]

                },
                {
                    d1:['10304125','小茗同学','男','721','1','中科大'],
                    operation:["调班"]
                },
                {
                    d1:['10304125','小茗同学','男','721','1','中科大'],
                    operation:["调班"]
                },
                {
                    d1:['10304125','小茗同学','男','721','1','中科大'],
                    operation:["调班"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-class-divide-query",
            data:class_divide_query_table,
            hasCheckbox:false
        })
    },
    // 分班统计table
    classDivideStatisticsTable:function(){
        var data_class_divide_statistics_table = {
            head:["男女比例","毕业学校","分数段"],
            data:[
                {
                    d1:['1班','35','22']
                },
                {
                    d1:['1班','35','22']
                },
                {
                    d1:['1班','35','22']
                },
                {
                    d1:['1班','35','22']
                }
            ]
        };
        $.getTable({
            dom:".c-table-class-divide-statistics",
            data:data_class_divide_statistics_table,
            hasCheckbox:false
        })
    },
    //毕业院校table
    classUniversityTable:function(){
        var data_class_university = {
            head:["班级","中国科技大学","安徽大学","合肥工业大学","安徽农业大学"],
            data:[
                {
                    d1:['1班','35','22','35','22']
                },
                {
                    d1:['1班','35','22','35','22']
                },
                {
                    d1:['1班','35','22','35','22']
                },
                {
                    d1:['1班','35','22','35','22']
                }
            ]
        };
        $.getTable({
            dom:".c-table-class-university",
            data:data_class_university,
            hasCheckbox:false
        })
    },
    //分数段table
    classScoreSubsection:function(){
        var data_score_subsection = {
            head:["班级","550-530","530-510","510-490","460-430"],
            data:[
                {
                    d1:['1班','35','22','35','22']
                },
                {
                    d1:['1班','35','22','35','22']
                },
                {
                    d1:['1班','35','22','35','22']
                },
                {
                    d1:['1班','35','22','35','22']
                }
            ]
        };
        $.getTable({
            dom:".c-table-class-score-subsection",
            data:data_score_subsection,
            hasCheckbox:false
        })
    },
    //学籍管理table
    schoolStatusTable:function(){
        var data_school_status = {
            head:["学号","班级","姓名","性别","民族","身份证号","入学年份","操作"],
            data:[
                {
                    d1:['210304125','高三（1）班','小明同学','男','汉','340102200012031430','2001/9/1'],
                    operation:["编辑"]
                },
                {
                    d1:['210304125','高三（1）班','小明同学','男','汉','340102200012031430','2001/9/1'],
                    operation:["编辑"]
                },
                {
                    d1:['210304125','高三（1）班','小明同学','男','汉','340102200012031430','2001/9/1'],
                    operation:["编辑"]
                },
                {
                    d1:['210304125','高三（1）班','小明同学','男','汉','340102200012031430','2001/9/1'],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-school-status",
            data:data_school_status,
            hasCheckbox:true
        })
    },
    // 异动类型设置table
    schoolStatusUnusualActionSettingTable:function(){
        var data_UnusualAction_setting = {
            head:["类型名称","操作"],
            data:[
                {
                    d1:['肄业'],
                    operation:["编辑"]
                },
                {
                    d1:['肄业'],
                    operation:["编辑"]
                },
                {
                    d1:['肄业'],
                    operation:["编辑"]
                },
                {
                    d1:['肄业'],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-school-status-unusual-action",
            data:data_UnusualAction_setting,
            hasCheckbox:true
        })
    },
    // 学籍异动table
    schoolStatusUnusualActionTable:function(){
        var data_UnusualAction = {
            head:["学号","班级","姓名","性别","异动类型","异动原因","申请日期","状态","操作"],
            data:[
                {
                    d1:["103003121","高一（1）班","小茗同学","男","转出学籍","留学","2018/0/1","已审核"],
                    operation:["查看详情"]
                },
                {
                    d1:["103003121","高一（1）班","小茗同学","男","转出学籍","留学","2018/0/1","未审核"],
                    operation:["查看详情"]
                },
                {
                    d1:["103003121","高一（1）班","小茗同学","男","转出学籍","留学","2018/0/1","未审核"],
                    operation:["查看详情"]
                },
                {
                    d1:["103003121","高一（1）班","小茗同学","男","转出学籍","留学","2018/0/1","已审核"],
                    operation:["查看详情"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-school-status-unusual-action-2",
            data:data_UnusualAction,
            hasCheckbox:true
        })
        if($(".c-table-school-status-unusual-action-2").find("td").text().indexOf("未") > 0 ){
         
            $(this).css("color","#c33131");
        }
    },
    // 缴费-table
    payManagement:function(){
        var data_pay_management = {
            head:["缴费名称","缴费金额（元）","管理机构","联系方式","机构负责人","负责人联系方式","备注","操作"],
            data:[
                {
                    d1:["学杂费","1200.00","校方","0551-5172390","小茗同学","13722110303","9.20日前交完"],
                    operation:["编辑"]
                },
                {
                    d1:["学杂费","1200.00","校方","0551-5172390","小茗同学","13722110303","9.20日前交完"],
                    operation:["编辑"]
                },
                {
                    d1:["学杂费","1200.00","校方","0551-5172390","小茗同学","13722110303","9.20日前交完"],
                    operation:["编辑"]
                },
                {
                    d1:["学杂费","1200.00","校方","0551-5172390","小茗同学","13722110303","9.20日前交完"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-pay-management",
            data:data_pay_management,
            hasCheckbox:true
        })
    },
    //升级-table
    upgradeTabge:function(){
        var data_upgrade = {
            head:["入学年份","姓名","学号","年级","班级"],
            data:[
                {
                    d1:["2018","小茗同学","10121231231","高一","一班"]
                },
                {
                    d1:["2018","小茗同学","10121231231","高一","一班"]
                },
                {
                    d1:["2018","小茗同学","10121231231","高一","一班"]
                },
                {
                    d1:["2018","小茗同学","10121231231","高一","一班"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-upgrade",
            data:data_upgrade,
            hasCheckbox:true
        })
    },
    //社团管理-审核-tale
    associationExamineTable:function(){
        var data_association_examine = {
            head:["社团名称","申请时间","申请人","申请说明","直接审核","操作"],
            data:[
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","已审核"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","审核"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","审核"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","审核"],
                    operation:["查看"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-association-examine",
            data:data_association_examine,
            hasCheckbox:false
        }) 
        
        $(".c-table-association-examine").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="审核"){
                $(item).css({
                    "color":"#2a52b1",
                    "cursor":"pointer"
                })
                //审核方法
                $(item).on("click",function(){
                    
                })
            }
            if($(item).attr("data-text")=="已审核"){
                $(item).css({
                    "color":"#333",
                    "cursor":"pointer"
                })
                $(item).append("<span style='right:13px;top:13px;width:15px;height:15px;position: absolute;display:block;background-image: url(./imgs/g_wancheng.png);background-size:100% 100%;background-repeat: no-repeat;' class='icon-finish'></span>")
            }
            if($(item).attr("data-text")=="查看"){
                $(item).on("click","span",function(){
                    $.get_layer({
                        title: "查看详情",
                        type:"1",
                        html:$("#association_view_details").html(),
                        btn_arr:["驳回","审核"],
                        area:['770px', '300px'],
                        btn1:function(){
                            //驳回
                            $.get_layer({
                                title: "驳回",
                                type:"1",
                                html:$("#association_view_details_reject").html(),
                                btn_arr:["取消","确认"],
                                area:['770px', '240px'],
                                btn1:function(){
                                    
                                },
                                btn2:function(){
                                    
                                }
                            })
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
        
    },
    //社团管理-管理-table
    associationManagementTable:function(){
        var data_association_management = {
            head:["社团名称","创立时间","申请人","申请说明","社团人数","审核人","直接取缔","操作"],
            data:[
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","14","程雪","已取缔"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","14","程雪","取缔"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","14","程雪","已取缔"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","丰富学生业余生活","14","程雪","取缔"],
                    operation:["查看"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-association-management",
            data:data_association_management,
            hasCheckbox:false
        }) 
        $(".c-table-association-management").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="已取缔"){
                $(item).css({
                    "color":"#333",
                    "cursor":"pointer"
                })
                $(item).append("<span style='right:13px;top:13px;width:15px;height:15px;position: absolute;display:block;background-image: url(./imgs/g_wancheng.png);background-size:100% 100%;background-repeat: no-repeat;' class='icon-finish'></span>")
            }
            if($(item).attr("data-text")=="查看"){
                console.log(1)
                $(item).on("click","span",function(){
                    $.get_layer({
                        title: "查看详情",
                        type:"1",
                        html:$("#association_view_details_management").html(),
                        btn_arr:["驳回","审核"],
                        area:['780px', '360px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                    $(".association-view-details-management").on("click",".view-all",function(){
                        layer.closeAll();
                        $.get_layer({
                            title: "查看详情",
                            type:"1",
                            html:$("#association_view_all").html(),
                            btn_arr:[],
                            
                            area:['780px', 'auto'],
                            btn1:function(){
                                
                            },
                            btn2:function(){
                                
                            }
                        })
                        
                    })
                })
               
            }
            if($(item).attr("data-text")=="取缔"){
                $(item).css({
                    "color":"#2a52b1",
                    "cursor":"pointer"
                })
                $(item).on("click",function(){
                    $.get_layer({
                        title: "取缔",
                        type:"1",
                        html:$("#association_view_details_ban").html(),
                        btn_arr:["取消","确认"],
                        area:['770px', '220px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
               
            }

        })
       
        
    },
    //已取缔社团-table
    associationHasBandTable:function(){
        var data_association_hasBand = {
            head:["社团名称","创立时间","申请人","取缔时间","取缔人","操作"],
            data:[
                {
                    d1:["动漫社","2017/9/1","小茗同学","2018/3/21","程雪"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","2018/3/21","程雪"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","2018/3/21","程雪"],
                    operation:["查看"]
                },
                {
                    d1:["动漫社","2017/9/1","小茗同学","2018/3/21","程雪"],
                    operation:["查看"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-association-hasBand",
            data:data_association_hasBand,
            hasCheckbox:false
        }) 

        $(".c-table-association-hasBand").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="查看"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "查看详情",
                        type:"1",
                        html:$("#association_view_details_hasBan").html(),
                        btn_arr:[],
                        area:['770px', 'auto'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //组织管理-党员管理-table
    organizationPartyMember:function(){
        var data_organizationPartyMember= {
            head:["姓名","学号","年级","班级","身份证号","所在党支部","入党日期","转正日期","联系电话","操作"],
            data:[
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","13312345678"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","13312345678"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","13312345678"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","13312345678"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-organization-party-member",
            data:data_organizationPartyMember,
            hasCheckbox:false
        }) 
    },
    //组织管理-团员管理
    organizationLeagueMember:function(){
        var data_organization_league_member= {
            head:["姓名","学号","年级","班级","身份证号","所在党支部","入党日期","转正日期","团费","移动电话","操作"],
            data:[
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","已缴纳","13312345678"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","未缴纳","13312345678"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","已缴纳","13312345678"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","19304123","高一","一班","340912313313223","学校党支部","2015/9/1","2016/9/1","已缴纳","13312345678"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-organization-league-member",
            data:data_organization_league_member,
            hasCheckbox:true
        }) 
        $(".c-table-organization-league-member").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="未缴纳"){
                $(item).css({
                    "color":"#c4302e"
                })
            }
        })
    },
    organizationNoticeTable:function(){
        var data_organization_notice= {
            head:["标题","摘要","时间","发布人","直接发布","操作"],
            data:[
                {
                    d1:["党费","7月1日缴纳党费50元","2018/6/23","小茗同学","已发布"],
                    operation:["编辑"]
                },
                {
                    d1:["党费","7月1日缴纳党费50元","2018/6/23","小茗同学","已发布"],
                    operation:["编辑"]
                },
                {
                    d1:["党费","7月1日缴纳党费50元","2018/6/23","小茗同学","发布"],
                    operation:["编辑"]
                },
                {
                    d1:["党费","7月1日缴纳党费50元","2018/6/23","小茗同学","已发布"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-organization-notice",
            data:data_organization_notice,
            hasCheckbox:true
        }) 
        $(".c-table-organization-notice").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="已发布"){
                $(item).css({
                    "color":"#333",
                    "cursor":"pointer"
                })
                $(item).append("<span style='right:30px;top:13px;width:15px;height:15px;position: absolute;display:block;background-image: url(./imgs/g_wancheng.png);background-size:100% 100%;background-repeat: no-repeat;' class='icon-finish'></span>")
            }
            if($(item).attr("data-text")=="发布"){
                $(item).css({
                    "color":"#2a52b1",
                    "cursor":"pointer"
                })
            }
        })
    },
    //评价管理
    appraiseManagementTable:function(){
        var data_appraiseManagement= {
            head:[" ","学年","学期","学号","年级","班级","姓名","性别","状态","操作"],
            data:[
                {
                    d1:["1","2015学年","第一学期","20180019","高一","一班","小茗同学","男","已评价"],
                    operation:["查看"]
                },
                {
                    d1:["2","2015学年","第一学期","20180019","高一","一班","小茗同学","男","未评价"],
                    operation:["评价"]
                },
                {
                    d1:["3","2015学年","第一学期","20180019","高一","一班","小茗同学","男","已评价"],
                    operation:["查看"]
                },
                {
                    d1:["4","2015学年","第一学期","20180019","高一","一班","小茗同学","男","未评价"],
                    operation:["评价"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-appraise-management",
            data:data_appraiseManagement,
            hasCheckbox:false
        }) 
        $(".c-table-appraise-management").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="未评价"){
                $(item).css({
                    "color":"#d40013",
                    "cursor":"pointer"
                })
            }
         })

         //素质管理-评价管理-评价学生-评价
         $(".c-table-appraise-management").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="评价"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "评价",
                        type:"1",
                        html:$("#appraise_management_layer").html(),
                        btn_arr:["取消","提交"],
                        area:['1016px', 'auto'],
                        btn1:function(){
                           
                        },
                        btn2:function(){
                            
                        }
                    })
                })
                
            }
            if($(item).attr("data-text")=="查看"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "评价",
                        type:"1",
                        html:$("#appraise_management_has_layer").html(),
                        btn_arr:["取消","提交"],
                        area:['1016px', 'auto'],
                        btn1:function(){
                           
                        },
                        btn2:function(){
                            
                        }
                    })
                })
                
            }
         })
         
    },
    //评价查询 
    appraise_query_table:function(){
        var data_appraiseQuery= {
            head:[" ","学年","学期","学号","年级","班级","姓名","性别","状态","操作"],
            data:[
                {
                    d1:["1","2015学年","第一学期","20180019","高一","一班","小茗同学","男","热爱学习，性格。。。"],
                    operation:["查看"]
                },
                {
                    d1:["1","2015学年","第一学期","20180019","高一","一班","小茗同学","男","热爱学习，性格。。。"],
                    operation:["查看"]
                },
                {
                    d1:["1","2015学年","第一学期","20180019","高一","一班","小茗同学","男","热爱学习，性格。。。"],
                    operation:["查看"]
                },
                {
                    d1:["1","2015学年","第一学期","20180019","高一","一班","小茗同学","男","热爱学习，性格。。。"],
                    operation:["查看"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-appraise-query",
            data:data_appraiseQuery,
            hasCheckbox:false
        }) 
    },
    //评价问题设置
    appraiseProblemSettingTable:function(){
        var data_appraise_problem_setting= {
            head:["评价内容","操作"],
            data:[
                {
                    d1:["思想品德"],
                    operation:["修改"]
                },
                {
                    d1:["思想品德"],
                    operation:["修改"]
                },
                {
                    d1:["思想品德"],
                    operation:["修改"]
                },
                {
                    d1:["思想品德"],
                    operation:["修改"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-appraise-problem-setting",
            data:data_appraise_problem_setting,
            hasCheckbox:true
        }) 
    },
    
   
    //健康管理-table
    healthManagementTable:function(){
        var data_health_management= {
            head:["","学号","年级","班级","姓名","性别","身高（cm）","体重（kg）","视力","是否残疾","传染病","其他病","身体状态","录入日期","操作"],
            data:[
                {
                    d1:["1","20180019","高三","一班","小茗同学","男","165","50","1.0","否","否","否","良好","2018/10/12"],
                    operation:["编辑"]
                },
                {
                    d1:["1","20180019","高三","一班","小茗同学","男","165","50","1.0","否","否","否","良好","2018/10/12"],
                    operation:["编辑"]
                },
                {
                    d1:["1","20180019","高三","一班","小茗同学","男","165","50","1.0","否","否","否","良好","2018/10/12"],
                    operation:["编辑"]
                },
                {
                    d1:["1","20180019","高三","一班","小茗同学","男","165","50","1.0","否","否","否","良好","2018/10/12"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-health-management",
            data:data_health_management,
            hasCheckbox:true
        }) 
        $(".c-table-health-management").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="编辑"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "评价",
                        type:"1",
                        html:$("#health_table_check_layer").html(),
                        btn_arr:["取消","提交"],
                        area:['1016px', '600px'],
                        btn1:function(){
                           
                        },
                        btn2:function(){
                            
                        }
                    })
                })
               
            }
        })
        
    },
    //奖惩申请-table
    rewardApplyTable:function(){
        var data_reward_apply= {
            head:["序号","学号","班级","姓名","性别","奖惩类型","奖惩说明","声请人","申请时间","状态","操作"],
            data:[
                {
                    d1:["1","20180019","高三（1）班","小茗同学","男","惩罚","不遵守校纪校规","程雪","2018/3/5","待审核"],
                    operation:["编辑"]
                },
                {
                    d1:["1","20180019","高三（1）班","小茗同学","男","惩罚","不遵守校纪校规","程雪","2018/3/5","待审核"],
                    operation:["编辑"]
                },
                {
                    d1:["1","20180019","高三（1）班","小茗同学","男","惩罚","不遵守校纪校规","程雪","2018/3/5","待审核"],
                    operation:["编辑"]
                },
                {
                    d1:["1","20180019","高三（1）班","小茗同学","男","惩罚","不遵守校纪校规","程雪","2018/3/5","待审核"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-reward-apply",
            data:data_reward_apply,
            hasCheckbox:true
        }) 
    },
    rewardExamineTable:function(){
        var data_reward_examine= {
            head:["序号","学号","姓名","性别","班级","奖惩类型","奖惩说明","声请人","申请时间","操作"],
            data:[
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","程雪","2018/3/5"],
                    operation:["审核"]
                },
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","程雪","2018/3/5"],
                    operation:["审核"]
                },
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","程雪","2018/3/5"],
                    operation:["审核"]
                },
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","程雪","2018/3/5"],
                    operation:["审核"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-reward-examine",
            data:data_reward_examine,
            hasCheckbox:true
        }) 
        $(".c-table-reward-examine").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "审核内容",
                        type:"1",
                        html:$("#reward_examine_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', 'auto'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //奖罚统计-table
    rewardStatisticsTable:function(){
        var data_reward_statistics= {
            head:["序号","学号","姓名","性别","班级","奖惩类型","奖惩说明","申请时间","状态","操作"],
            data:[
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","2018/3/5","审核失败"],
                    operation:["查看"]
                },
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","2018/3/5","审核失败"],
                    operation:["查看"]
                },
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","2018/3/5","审核失败"],
                    operation:["查看"]
                },
                {
                    d1:["1","20180019","小茗同学","男","高三（1）班","惩罚","不遵守校纪校规","2018/3/5","审核失败"],
                    operation:["查看"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-reward-statistics",
            data:data_reward_statistics,
            hasCheckbox:true
        }) 
        $(".c-table-reward-statistics").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="查看"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "查看",
                        type:"1",
                        html:$("#reward_statistics_check_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', 'auto'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
     //贫困生列表table
    supportPoorStudentsTable:function(){
        var data_poor_students= {
            head:["申请学年","申请时间","状态","申请"],
            data:[
                {
                    d1:["2014-2015学年","2014/9/1-2015/9/1","申请中","关闭申请"],
                    operation:[]
                },
                {
                    d1:["2014-2015学年","2014/9/1-2015/9/1","申请中","关闭申请"],
                    operation:[]
                },
                {
                    d1:["2014-2015学年","2014/9/1-2015/9/1","申请中","允许申请"],
                    operation:[]
                },
                {
                    d1:["2014-2015学年","2014/9/1-2015/9/1","申请中","关闭申请"],
                    operation:[]
                }
            ]
        };
        $.getTable({
            dom:".c-table-support-poor-students-1",
            data:data_poor_students,
            hasCheckbox:true
        }) 
        $(".c-table-support-poor-students-1").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="关闭申请"){
                $(item).css({
                    "color":"#c4302e",
                    "cursor":"pointer"
                })
            }
            if($(item).attr("data-text")=="允许申请"){
                $(item).css({
                    "color":"#2a52b1",
                    "cursor":"pointer"
                })
                $(item).on("click",function(){
                    $.get_layer({
                        title: "查看",
                        type:"1",
                        html:$("#add_poor_student_apply").html(),
                        btn_arr:["取消","发布"],
                        area:['780px', '500px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //贫困生审核table
    supportPoorStudentsExamine:function(){
        var data_support_poor_student_examine= {
            head:["申请者学号","申请姓名","申请者班级","申请退学","申请时间","状态","操作"],
            data:[
                {
                    d1:["20180019","小茗同学","高三（1）班","2015学年","2015/5/4","待审核"],
                    operation:["审核","下载资料"]
                },
                {
                    d1:["20180019","小茗同学","高三（1）班","2015学年","2015/5/4","待审核"],
                    operation:["审核","下载资料"]
                },
                {
                    d1:["20180019","小茗同学","高三（1）班","2015学年","2015/5/4","待审核"],
                    operation:["审核","下载资料"]
                },
                {
                    d1:["20180019","小茗同学","高三（1）班","2015学年","2018/3/5","待审核"],
                    operation:["审核","下载资料"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-support-poor-students-examine",
            data:data_support_poor_student_examine,
            hasCheckbox:true
        }) 
        //贫困生审核-审核
        $(".c-table-support-poor-students-examine").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "审核",
                        type:"1",
                        html:$("#support_poor_examine_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', 'auto'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        });

    },
    //
    supportPoorStatistics:function(){
        var data_support_poor_student_statistics= {
            head:["申请学年","申请时间","操作"],
            data:[
                {
                    d1:["2014-2015学年","2015/5/4-2015/5/4"],
                    operation:["人员查看","导出"]
                },
                {
                    d1:["2014-2015学年","2015/5/4-2015/5/4"],
                    operation:["人员查看","导出"]
                },
                {
                    d1:["2014-2015学年","2015/5/4-2015/5/4"],
                    operation:["人员查看","导出"]
                },
                {
                    d1:["2014-2015学年","2015/5/4-2015/5/4"],
                    operation:["人员查看","导出"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-support-poor-students-statistics",
            data:data_support_poor_student_statistics,
            hasCheckbox:true
        }) 
        $(".c-table-support-poor-students-statistics").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="人员查看"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "人员查看",
                        type:"1",
                        html:$("#staff_check_layer").html(),
                        btn_arr:[],
                        area:['782px', '400px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                    
                    var data_staff_check = {
                        head:["序号","学号","姓名","性别","班级"],
                        data:[
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班"],
                                operation:[]
                            },
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班"],
                                operation:[]
                            },
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班"],
                                operation:[]
                            },
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班"],
                                operation:[]
                            }
                        ]
                    }
                    $.getTable({
                        dom:".c-table-staff-check",
                        data:data_staff_check,
                        hasCheckbox:false
                    }) 
                    layui.use('laypage', function(){
                        var laypage = layui.laypage;  
                        laypage.render({
                            elem: 'c_page_staff_check', //注意，这里的 test1 是 ID，不用加 # 号
                            limit:3
                            ,count: 5,
                            theme: '#2a52b1'  //数据总数，从服务端得到
                        });
                    })

                })
            }
        })
        
        
    },
    //奖学金列表  c-table-scholarship-list
    scholarshipList:function(){
        var data_scholarship_list= {
            head:["奖学金类型","申请时间","状态","申请","操作"],
            data:[
                {
                    d1:["国家奖学金","2014/8/2-2015/5/4","申请中","关闭申请"],
                    operation:["编辑"]
                },
                {
                    d1:["国家奖学金","2014/8/2-2015/5/4","申请中","关闭申请"],
                    operation:["编辑"]
                },
                {
                    d1:["国家奖学金","2014/8/2-2015/5/4","申请中","关闭申请"],
                    operation:["编辑"]
                },
                {
                    d1:["国家奖学金","2014/8/2-2015/5/4","申请中","关闭申请"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-scholarship-list",
            data:data_scholarship_list,
            hasCheckbox:true
        })
        
    },
    //申请列表 c-table-apply-list
    supportMapplyList:function(){
        var data_apply_list= {
            head:["申请人学号","申请人姓名","申请人班级","申请项目","申请时间","状态","操作"],
            data:[
                {
                    d1:["20180019","小茗同学","高一（1）班","国家奖学金","2018/4/25","待审核"],
                    operation:["审核","下载资料"]
                },
                {
                    d1:["20180019","小茗同学","高一（1）班","国家奖学金","2018/4/25","待审核"],
                    operation:["审核","下载资料"]
                },
                {
                    d1:["20180019","小茗同学","高一（1）班","国家奖学金","2018/4/25","待审核"],
                    operation:["审核","下载资料"]
                },
                {
                    d1:["20180019","小茗同学","高一（1）班","国家奖学金","2018/4/25","待审核"],
                    operation:["审核","下载资料"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-apply-list",
            data:data_apply_list,
            hasCheckbox:true
        })
        $(".c-table-apply-list").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="待审核"){
                $(item).css({
                    "color":"#c4302e",
                    "cursor":"pointer"
                })
            }
            if($(item).attr("data-text")=="审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "审核",
                        type:"1",
                        html:$("#support_scholarship_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', 'auto'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //助学金统计 table  c-table-scholarship-statistics
    scholarshipStatisticsTable:function(){
        var data_scholarship_statistics= {
            head:["申请者学号","申请姓名","申请者班级","申请项目","申请时间","审核人","审核时间"],
            data:[
                {
                    d1:["20180019","小茗同学","高三（1）班","国家奖学金","2015/5/4","程雪","2018/9/21"],
                    operation:[]
                },
                {
                    d1:["20180019","小茗同学","高三（1）班","国家奖学金","2015/5/4","程雪","2018/9/21"],
                    operation:[]
                },
                {
                    d1:["20180019","小茗同学","高三（1）班","国家奖学金","2015/5/4","程雪","2018/9/21"],
                    operation:[]
                },
                {
                    d1:["20180019","小茗同学","高三（1）班","国家奖学金","2015/5/4","程雪","2018/9/21"],
                    operation:[]
                }
            ]
        };
        $.getTable({
            dom:".c-table-scholarship-statistics",
            data:data_scholarship_statistics,
            hasCheckbox:true
        }) 
    },
    //岗位发布 c-table-post-release
    postReleaseTable:function(){
        var data_post_release= {
            head:["发布机构","岗位名称","联系人","联系电话","要求人数","状态","操作"],
            data:[
                {
                    d1:["图书馆","书籍管理员","程雪","13721032254","0/5","发布中"],
                    operation:["编辑"]
                },
                {
                    d1:["图书馆","书籍管理员","程雪","13721032254","0/5","发布中"],
                    operation:["编辑"]
                },
                {
                    d1:["图书馆","书籍管理员","程雪","13721032254","0/5","发布中"],
                    operation:["编辑"]
                },
                {
                    d1:["图书馆","书籍管理员","程雪","13721032254","0/5","发布中"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-post-release",
            data:data_post_release,
            hasCheckbox:true
        }) 
    },
    //申请岗位人员审核 c-table-apply-post
    applyPostTable:function(){
        var data_apply_post= {
            head:["申请者学号","申请者","申请者班级","是否困难生","发布机构","申请岗位","申请时间","申请状态","操作"],
            data:[
                {
                    d1:["20180019","小茗同学","高一（1）班","否","图书馆","书籍管理员","2018/7/9","待审核"],
                    operation:["审核"]
                },
                {
                    d1:["20180019","小茗同学","高一（1）班","否","图书馆","书籍管理员","2018/7/9","待审核"],
                    operation:["审核"]
                },
                {
                    d1:["20180019","小茗同学","高一（1）班","否","图书馆","书籍管理员","2018/7/9","待审核"],
                    operation:["审核"]
                },
                {
                    d1:["20180019","小茗同学","高一（1）班","否","图书馆","书籍管理员","2018/7/9","待审核"],
                    operation:["审核"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-apply-post",
            data:data_apply_post,
            hasCheckbox:true
        }) 
        $(".c-table-apply-post").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "审核",
                        type:"1",
                        html:$("#apply_post_examine").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', '600px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //岗位人员维护  c-table-post-servicing
    postServicingTable:function(){
        var data_post_servicing= {
            head:["发布机构","岗位名称","联系人","联系电话","要求人数","状态","操作"],
            data:[
                {
                    d1:["图书馆","书籍管理员","小茗同学","13721085556","0/5","发布中"],
                    operation:["人员查看","汇总导出"]
                },
                {
                    d1:["图书馆","书籍管理员","小茗同学","13721085556","0/5","发布中"],
                    operation:["人员查看","汇总导出"]
                },
                {
                    d1:["图书馆","书籍管理员","小茗同学","13721085556","0/5","发布中"],
                    operation:["人员查看","汇总导出"]
                },
                {
                    d1:["图书馆","书籍管理员","小茗同学","13721085556","0/5","发布中"],
                    operation:["人员查看","汇总导出"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-post-servicing",
            data:data_post_servicing,
            hasCheckbox:true
        }) 
        $(".c-table-post-servicing").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="人员查看"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "人员查看",
                        type:"1",
                        html:$("#post_servicing_check_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', '430px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                    var data_post_servicing_check= {
                        head:["申请者学号","申请者姓名","申请者班级","录用状态","操作"],
                        data:[
                            {
                                d1:["20180019","小茗同学","高一（1）班","启用"],
                                operation:["生成工资单"]
                            },
                            {
                                d1:["20180019","小茗同学","高一（1）班","结束录用"],
                                operation:["生成工资单"]
                            },
                            {
                                d1:["20180019","小茗同学","高一（1）班","结束录用"],
                                operation:["生成工资单"]
                            },
                            {
                                d1:["20180019","小茗同学","高一（1）班","结束录用"],
                                operation:["生成工资单"]
                            }
                        ]
                    };
                    $.getTable({
                        dom:".c-table-post-servicing-check",
                        data:data_post_servicing_check,
                        hasCheckbox:true
                    }) 
                    $(".c-table-post-servicing-check").find("table>tbody>tr>td").each(function(i,item){
                        if($(item).attr("data-text")=="结束录用"){
                            $(item).on("click",function(){
                                $.get_layer({
                                    title: "结束录用",
                                    type:"1",
                                    html:$("#end_employment_layer").html(),
                                    btn_arr:["取消","确定"],
                                    area:['782px', '500px'],
                                    btn1:function(){
                                        
                                    },
                                    btn2:function(){
                                        
                                    }
                                })
                            })
                        }
                        if($(item).attr("data-text")=="生成工资单"){
                            $(item).on("click",function(){
                                $.get_layer({
                                    title: "生成工资单",
                                    type:"1",
                                    html:$("#make_payroll_layer").html(),
                                    btn_arr:["取消","确定"],
                                    area:['790px', 'auto'],
                                    btn1:function(){
                                        
                                    },
                                    btn2:function(){
                                        
                                    }
                                })
                            })
                        }
                    })
                    layui.use('laypage', function(){
                        var laypage = layui.laypage;  
                        laypage.render({
                            elem: 'c_page_post_servicing_check', //注意，这里的 test1 是 ID，不用加 # 号
                            limit:3
                            ,count: 5,
                            theme: '#2a52b1'  //数据总数，从服务端得到
                        });
                    })
                    
                })
                
            }
        })
    },
    //工资单维护 c-table-payroll-support
    payrollSupportTable:function(){
        var data_payroll_support= {
            head:["学号","姓名","班级","发布机构","申请岗位","工作时间","计薪年月","金额","考核","银行卡号","操作"],
            data:[
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001"],
                    operation:["待审核"]
                },
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001"],
                    operation:["待审核"]
                },
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001"],
                    operation:["待审核"]
                },
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001"],
                    operation:["待审核"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-payroll-support",
            data:data_payroll_support,
            hasCheckbox:false
        }) 
        $(".c-table-payroll-support").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="待审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "工资单审核",
                        type:"1",
                        html:$("#payroll_support_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['782px', '600px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //工资发放 c-table-payroll-grant
    payrollGrantTable:function(){
        var data_payroll_grant= {
            head:["学号","姓名","班级","发布机构","岗位名称","工作时间","计薪年月","金额","考核","银行卡号","状态","操作"],
            data:[
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001","未发放"],
                    operation:["发放"]
                },
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001","未发放"],
                    operation:["发放"]
                },
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001","未发放"],
                    operation:["发放"]
                },
                {
                    d1:["20180019","程雪","高一（1）班","图书馆","资料员","周四下午","2018/7","400.00","优秀","6222001122112201001","已发放"],
                    operation:[""]
                }
            ]
        };
        $.getTable({
            dom:".c-table-payroll-grant",
            data:data_payroll_grant,
            hasCheckbox:false
        }) 
        $(".c-table-payroll-grant").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="未发放"){
                $(item).css({
                    "color":"#c4302e"
                })
            }
            if($(item).attr("data-text")=="发放"){
               $(item).on("click",function(){
                $.get_layer({
                    title: "提示",
                    type:"1",
                    html:$("#is_grand_layer").html(),
                    btn_arr:["取消","确定"],
                    area:['490px', 'auto'],
                    btn1:function(){
                        
                    },
                    btn2:function(){
                        
                    }
                })
               })
            }
        })
    },
    //活动管理 活动发布 c-table-activity-grant
    activityGrantTable:function(){
        var data_activity_grant= {
            head:["序号","活动标题","活动级别","活动举办时间","活动内容","上传人","上传时间","状态","申请状态","操作"],
            data:[
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中","关闭申请"],
                    operation:["编辑"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中","关闭申请"],
                    operation:["编辑"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中","关闭申请"],
                    operation:["编辑"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中","关闭申请"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-activity-grant",
            data:data_activity_grant,
            hasCheckbox:false
        }) 
        $(".c-table-activity-grant").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="关闭申请"){
                $(item).css({
                    "color":"#2a52b1"
                })
            }
           
        })
    },
    //参加活动审核 table c-table-activity-member
    activityMemberTable:function(){
        var data_activity_member= {
            head:["序号","活动标题","活动级别","活动举办时间","活动内容","上传人","上传时间","状态","操作"],
            data:[
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["申请人员审核"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["申请人员审核"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["申请人员审核"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["申请人员审核"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-activity-member",
            data:data_activity_member,
            hasCheckbox:false
        }) 
        $(".c-table-activity-member").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="申请人员审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "提示",
                        type:"1",
                        html:$("#activity_member_examine_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['780px', '450px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                    var data= {
                        head:["序号","申请者学号","申请者姓名","申请者性别","申请者班级","状态","操作"],
                        data:[
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班","待审核"],
                                operation:["通过","驳回"]
                            },
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班","待审核"],
                                operation:["通过","驳回"]
                            },
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班","待审核"],
                                operation:["通过","驳回"]
                            },
                            {
                                d1:["1","20180019","小茗同学","男","高一（1）班","待审核"],
                                operation:["通过","驳回"]
                            }
                        ]
                    };
                    $.getTable({
                        dom:".c-table-activity-member-examine",
                        data:data,
                        hasCheckbox:false
                    }) 
                    layui.use('laypage', function(){
                        var laypage = layui.laypage;  
                        //执行一个laypage实例
                        laypage.render({
                          elem: 'c_page_activity_member_examine', //注意，这里的 test1 是 ID，不用加 # 号
                          limit:3
                          ,count: 5,
                          theme: '#2a52b1'  //数据总数，从服务端得到
                        });
                    })
                })
            }
        })
        
    },
    //生活记录 table c-table-activity-record
    activityRecordTable:function(){
        var data= {
            head:["序号","活动标题","活动级别","活动举办时间","活动内容","上传人","上传时间","状态","操作"],
            data:[
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["编辑","提交审核"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["编辑","提交审核"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","审核失败"],
                    operation:["编辑","提交审核"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","进行中"],
                    operation:["编辑","提交审核"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-activity-record",
            data:data,
            hasCheckbox:false
        }) 
        $(".c-table-activity-record").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="编辑" && $(item).prev().attr("data-text") == "审核失败"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "编辑",
                        type:"1",
                        html:$("#activity_record_fill_in_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['780px', '550px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                    $(".activity-record-fill-in-layer").find(".rich-text-box-1").css({
                        "width":"77.2%",
                        "margin-left":"123px"
                    }).append(
                        `<script id="activity_record_richtext" name="content" type="text/plain">
                        </script>`
                    )
                    UE.delEditor('activity_record_richtext');
                    var ue = UE.getEditor('activity_record_richtext');
                })
            }
            if($(item).attr("data-text")=="编辑" && $(item).prev().attr("data-text") == "进行中"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "编辑",
                        type:"1",
                        html:$("#activity_record_fill_in_layer_ok").html(),
                        btn_arr:["取消","确定"],
                        area:['780px', '550px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                        $(".activity-record-fill-in-layer-ok").find(".rich-text-box-2").css({
                            "width":"77.2%",
                            "margin-left":"123px"
                        }).append(
                            `<script id="activity_record_richtext_ok" name="content" type="text/plain">
                            </script>`
                        )
                        UE.delEditor('activity_record_richtext_ok');
                        var ue = UE.getEditor('activity_record_richtext_ok');
                    })
                }
            if($(item).attr("data-text")=="提交审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "提示",
                        type:"1",
                        html:$("#life_record_fill_in_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['490px', 'auto'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
                
        
    },
    //活动记录审核 table  c-table-activity-record-examine
    activityRecordExamineTable:function(){
        var data= {
            head:["活动标题","活动级别","活动举办时间","活动内容","上传人","上传时间","活动记录","状态","操作"],
            data:[
                {
                    d1:["元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","弘扬中华传统。。。","待审核"],
                    operation:["审核"]
                },
                {
                    d1:["元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","弘扬中华传统。。。","待审核"],
                    operation:["审核"]
                },
                {
                    d1:["元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","弘扬中华传统。。。","待审核"],
                    operation:["审核"]
                },
                {
                    d1:["元旦晚会","重要","2018/1/1","元旦节目表演","小茗同学","2017/12/1","弘扬中华传统。。。","待审核"],
                    operation:["审核"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-activity-record-examine",
            data:data,
            hasCheckbox:true
        }) 
        $(".c-table-activity-record-examine").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="审核"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "提示",
                        type:"1",
                        html:$("#activity_record_examine_layer").html(),
                        btn_arr:["取消","确定"],
                        area:['800px', '600px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //活动查看 table c-table-activity-check
    activityCheckTable:function(){
        var data= {
            head:["序号","活动标题","活动级别","活动举办时间","活动内容","活动记录","操作"],
            data:[
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","弘扬中华传统。。。"],
                    operation:["查看"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","弘扬中华传统。。。"],
                    operation:["查看"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","弘扬中华传统。。。"],
                    operation:["查看"]
                },
                {
                    d1:["1","元旦晚会","重要","2018/1/1","元旦节目表演","弘扬中华传统。。。"],
                    operation:["查看"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-activity-check",
            data:data,
            hasCheckbox:true
        }) 
        $(".c-table-activity-check").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="查看"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "提示",
                        type:"1",
                        html:$("#activity_check_layer").html(),
                        btn_arr:[],
                        area:['800px', '500px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    },
    //毕业生管理 table  c-table-graduate-main
    graduateMainTable:function(){
        var data= {
            head:["姓名","学号","性别","身份证号","班级","政治面貌","贫困生","电话","成绩","毕业状况","操作"],
            data:[
                {
                    d1:["小茗同学","20180019","男","34081119902080256","高一（1）班","团员","否","18223431234","622","毕业"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","20180019","男","34081119902080256","高一（1）班","团员","否","18223431234","622","毕业"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","20180019","男","34081119902080256","高一（1）班","团员","否","18223431234","622","毕业"],
                    operation:["编辑"]
                },
                {
                    d1:["小茗同学","20180019","男","34081119902080256","高一（1）班","团员","否","18223431234","622","毕业"],
                    operation:["编辑"]
                }
            ]
        };
        $.getTable({
            dom:".c-table-graduate-main",
            data:data,
            hasCheckbox:true
        }) 
        $(".c-table-graduate-main").find("table>tbody>tr>td").each(function(i,item){
            if($(item).attr("data-text")=="编辑"){
                $(item).on("click",function(){
                    $.get_layer({
                        title: "提示",
                        type:"1",
                        html:$("#add_school_status_layer").html(),
                        btn_arr:[],
                        area:['1100px', '500px'],
                        btn1:function(){
                            
                        },
                        btn2:function(){
                            
                        }
                    })
                })
            }
        })
    }
}
table.init();
